package et.common;

import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import et.item.ETItems;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;

/**
 * Created by winston_wang on 2017/5/31.
 */
@Mod(modid= ElectricThaum.MODID,
        name = ElectricThaum.NAME,
        version = ElectricThaum.VERSION,
        dependencies = ElectricThaum.DEPENDENCIES)
public class ElectricThaum {
    public static final String MODID = "et";
    public static final String NAME = "ElecrticTaum";
    public static final String VERSION = "1.0.0-BETA";
    public static final String DEPENDENCIES="required-after:Thaumcraft@[4.2.3.5,);required-after:IC2@[2.2.827-experimental,)";

    @Mod.Instance(ElectricThaum.MODID)
    public static ElectricThaum instance = new ElectricThaum();

    @SidedProxy(serverSide = "et.common.CommonProxy",
                clientSide = "et.client.ClientProxy")
    public static CommonProxy proxy = new CommonProxy();

    public static CreativeTabs tabET = new CreativeTabs("et") {
        @Override
        public Item getTabIconItem() {
            return ETItems.thaumCasing;
        }
    };

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event){
        proxy.preInit(event);

    }
    @Mod.EventHandler
    public void init(FMLInitializationEvent event){
        proxy.init(event);
    }
    @Mod.EventHandler
    public void postInit(FMLPostInitializationEvent event){
        proxy.postInit(event);
    }
}
